<?php
namespace Home\Model;
use lisPHP\DB\Model;

/**
 * author      : lis
 * creatTime   : 2015-12-29 15:03
 * email       : 407505297@qq.com
 * description :
 */
class TestModel extends Model{
    public function __construct(){
        $this->dbConfigKey = 'DB_CONFIG2';
    }

    public function getTables(){
        $sql = 'show tables';
        $result = $this->query($sql);
        $result = $this->fetchAssoc($result);
        return $result;
    }
}